<!--{include(pe_tpl('header.html'));}-->
<div class="huiyuan_content">
	<!--{include(pe_tpl('user_menu.html'));}-->
	<div class="fr huiyuan_main">
		<!--<div class="hy_tt">
			<a href="{$pe['host_root']}user.php?mod=order">个人中心</a>
		</div>-->
		<div class="u_index_box mat5">
			<div class="u_index_rtt">
				<div class="fl">您好，{$_s_user_name}</div>
				<div class="fr font12">上次登录：{pe_date($_s_user_ltime)}</div>
				<div class="clear"></div>
			</div>
			<div class="u_index_l">
				<!--<div class="u_tx"><img src="{pe_thumb($user['user_logo'], 150, 150, 'avatar')}"></div>-->
				<div class="u_info">
					<div style="margin-left:0px;">
						<p>手机号码：
							<!--{if($info['user_phone']):}-->
							<span class="c999">{$info['user_phone']}</span>
							<!--{else:}-->
							<a href="user.php?mod=setting&act=base" class="cblue">完善</a>
							<!--{endif;}-->					
						</p>
						<p>电子邮箱：
							<!--{if($info['user_email']):}-->
							<span class="c999">{$info['user_email']}</span>
							<!--{else:}-->
							<a href="user.php?mod=setting&act=base" class="cblue">完善</a>
							<!--{endif;}-->
						</p>
					</div>
				</div>
			</div>
			<div class="u_index_m">
				<div>待付款：<span class="c999"><a href="user.php?mod=order&state=wpay">{$tongji['wpay']}</a> 个</span></div>
				<div>待发货：<span class="c999"><a href="user.php?mod=order&state=wsend">{$tongji['wsend']}</a> 个</span></div>
			</div>
			<div class="u_index_r">
				<div class="u_ye_l">
					<div>余额：<a href="user.php?mod=moneylog" class="corg">{$info['user_money']} 元</a></div>
					<div>积分：<a href="user.php?mod=pointlog" class="c999">{$info['user_point']} 点</a></div>
				</div>
				<div class="u_ye_r">
					<a href="user.php?mod=pay">充值</a>
					<a href="user.php?mod=cashout&act=add" class="btntx">提现</a>
				</div>
				<div class="clear"></div>
			</div>
			<div class="clear"></div>
		</div>
		<div class="u_jilu_tt">
			<a href="javascript:;" class="fl">最新订单</a>
			<div class="clear"></div>
		</div>
		<!--{foreach($info_list as $v):}-->
		<div class="hy_ordertt">
			<span class="fl num5">{pe_date($v['order_atime'])}</span>
			<span class="fl" style="margin-left:30px">订单号：<span class="num5">{$v['order_id']}</span></span>
			<div class="clear"></div>
		</div>
		<table width="100%" border="0" cellspacing="0" cellpadding="0" class="hy_orderlist">
		<tr>
			<td style="text-align:left;">
				<!--{foreach($v['product_list'] as $kk => $vv):}-->
				<div class="dingdan_list" <!--{if($kk==0):}-->style="padding-top:0;border-top:0"<!--{endif;}-->>
					<a href="{pe_url('product-'.$vv['product_id'])}" class="fl mar5 dingdan_img" target="_blank"><img src="{pe_thumb($vv['product_logo'], 100, 100)}"></a>
					<div class="fl">
						<a href="{pe_url('product-'.$vv['product_id'])}" target="_blank" class="dd_name">{$vv['product_name']}</a>
						<!--{if($vv['prorule_name']):}-->
						<p class="c888 mat5"><!--{foreach(unserialize($vv['prorule_name']) as $vvv):}-->[{$vvv['name']}：{$vvv['value']}]&nbsp;&nbsp;<!--{endforeach;}--></p>
						<!--{endif;}-->
					</div>
					<span class="fr">{$vv['product_money']}(×{$vv['product_num']})</span>
					<div class="clear"></div>
				</div>
				<!--{endforeach;}-->
			</td>
			<td width="120">
				<p class="corg num1 font14 strong">{$v['order_money']}</p>
				<p class="c999">(含运费：{$v['order_wl_money']})</p>
				<p class="c666">{$cache_payway[$v['order_payway']]['payway_name']}</p>
			</td>
			<td width="100">{order_stateshow($v)}<p class="mat5"><a href="user.php?mod=order&act=view&id={$v['order_id']}" target="_blank">订单详情</a></p></td>
			<td width="100">
				<!--{if($v['order_state'] == 'wpay'):}-->
				<a class="tag_org" href="index.php?mod=order&act=pay&id={$v['order_id']}" target="_blank">立即付款</a>
				<p class="mat5"><a class="c999" href="user.php?mod=order&act=close&id={$v['order_id']}" onclick="return pe_dialog(this, '取消订单', 550, 350)">取消订单</a></p>
				<!--{elseif($v['order_state'] == 'wsend'):}-->
				<a class="c999" href="user.php?mod=order&act=close&id={$v['order_id']}" onclick="return pe_dialog(this, '取消订单', 550, 350)">取消订单</a>
				<!--{elseif($v['order_state'] == 'wget' && $v['order_payway'] == 'alipay_db'):}-->
				<a class="tag_green" href="javascript:alert('支付宝担保交易，需要您登录支付宝网站确认收货');">确认收货</a>
				<!--{elseif($v['order_state'] == 'wget' && $v['order_payway'] != 'cod'):}-->
				<a class="tag_green" href="user.php?mod=order&act=success&id={$v['order_id']}&token={$pe_token}" onclick="return pe_cfone(this, '已收到商品')">确认收货</a>
				<!--{elseif($v['order_state'] == 'success' && !$v['order_comment']):}-->
				<a class="tag_gray" href="user.php?mod=order&act=comment&id={$v['order_id']}" onclick="return pe_dialog(this, '发表评价', 800, 510)">发表评价</a>
				<!--{else:}-->
				-
				<!--{endif;}-->
			</td>
		</tr>
		</table>
		<!--{endforeach;}-->
	</div>
	<div class="clear"></div>
</div>
<!--{include(pe_tpl('footer.html'));}-->